const detailForm = this.getApiPage().getApiWidgetByAliasName('judge-content').widgetObj._option
const $playback = this.getApiPage().getApiWidgetByAliasName('playback')
const eventDetails = detailForm.dataSource.eventDetails
const widgetsGis = this.getApiPage().getApiWidgetByAliasName('三维组件');

if (Object.keys(eventDetails).length > 0) {
  // 最小化融合通讯弹窗
  widgetsGis.widgetObj.artemis.minimize();
  // 关闭三维弹窗
  widgetsGis.widgetObj.gisMap.setModalType('NONE');
  // 最小化视频弹窗
  widgetsGis.widgetObj.sullivan.minimize();

  const info = JSON.parse(eventDetails)
  console.log('info', info)
  if (info.jpbPath) {
    $playback.widgetObj.setData([{ data: info.jpbPath }])
    $playback.showWidget();
    $playback.widgetObj.render();
  } else {
    $playback.hideWidget();
    window.layer.msg('暂无录像回放')
  }
}else {
  $playback.hideWidget();
  window.layer.msg('暂无录像回放')
}
